package com.cynteka.cyfoman.core.collection;

import java.util.Collection;

/**
 * User: Sergey
 * Date: 29.07.11
 * Time: 11:30
 */
public interface ILink<Source, Destination> {
    CollectionRegistry getOwner();

    String getId();

    String getCollectionSourceId();

    String getCollectionDestinationId();

    Collection<Destination> getDestinationItems(Source source);

    Collection<Source> getSourceItems(Destination destination);

    LinkType getLinkType();
}
